#ifndef _SYCSERVICE_H
#define _SYCSERVICE_H

#include <sycservice_t.h>

sysstus_t syc_service_run (uint_t sycnbr, void * sframe);


/* 内存 相关系统调用 */

sysstus_t syctbl_mem_mallocblk (uint_t sycnbr, stkparam_t * stkparam);
sysstus_t syctbl_mem_freeblk (uint_t sycnbr, stkparam_t * stkparam);

/* 进程 相关系统调用 */

sysstus_t syctbl_thread_exel (uint_t sycnbr, stkparam_t * stkparam);
sysstus_t syctbl_thread_exit (uint_t sycnbr, stkparam_t * stkparam);
sysstus_t syctbl_thread_getid (uint_t sycnbr, stkparam_t * stkparam);

/* 文件 相关系统调用 */

sysstus_t syctbl_fs_open (uint_t sycnbr, stkparam_t * stkparam);
sysstus_t syctbl_fs_close (uint_t sycnbr, stkparam_t * stkparam);
sysstus_t syctbl_fs_read (uint_t sycnbr, stkparam_t * stkparam);
sysstus_t syctbl_fs_write (uint_t sycnbr, stkparam_t * stkparam);
sysstus_t syctbl_fs_ioctl (uint_t sycnbr, stkparam_t * stkparam);
sysstus_t syctbl_fs_lseek (uint_t sycnbr, stkparam_t * stkparam);

/* 时间 相关系统调用 */

sysstus_t syctbl_time_gettime (uint_t sycnbr, stkparam_t * stkparam);

#endif